package com.ruoyi.module.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 轮播图对象 fu_banner
 *
 * @author fubojin
 * @date 2024-12-06
 */
@Data
public class Banner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 图片 */
    @Excel(name = "图片")
    private String img;

    /** 轮播图 */
    @Excel(name = "轮播图")
    private String category;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long goodsId;
    private String goodsName;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private Integer isEnable;

    /** 启用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "启用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date activationTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 显示类型 */
    @Excel(name = "显示类型")
    private Integer type;

}
